<template>
  <div class="about">
    <div class="title">政策支持</div>
    <p class="width-style" v-html="articleData.content">
    </p>
  </div>
</template>

<script>
import { renderTime } from "@/utils/tools.js";
export default {
  layout: "personalCenterLayout",
  async asyncData({ app }) {
    let articleRes = await app.api.reqArticle(505);
    let articleData;
    if (articleRes.code === 200) {
      articleData = articleRes.data;
      articleData.publishTime = renderTime(articleData.publishTime);
    }
    console.log(articleData);
    return {
      articleData,
    };
  },
}
</script>

<style scoped lang="less">
.about {
    .title {
        font-size: 24px;
        margin-bottom: 40px;
    }
}
</style>